<?php 

include BASKET_DIR . 'blib/3rdlib/smarty/Smarty.class.php';
class smarty_handler
{
	private $_smarty = '';

	function __construct()
	{
		$this->_smarty = new smarty();
	}
	
	public function get_smarty()
	{
		return $this->_smarty;
	}
	
	function set_config($param)
	{
		foreach ($param as $k => $v) {
			if (property_exists($this->_smarty, $k)) {
				$this->_smarty->$k = $v;
			}
		}
		return $this;
	}
}